<template>
	<view class="container">
		<view class="wrapper">
			<view class="welcome">
				欢迎回来！
			</view>
			
			<view class="input-content">
				<view class="input-item">
					<text>用户名</text>
					<input type="text" v-model="formData.loginName" placeholder="请输入用户名" maxlength="11"/>
				</view>
				<view class="input-item">
					<text>密码</text>
					<input type="text" v-model="formData.password" placeholder="8-18位不含特殊字符的数字、字母组合" maxlength="18" password @confirm="toLogin" />
				</view>
			</view>
			
			<button class="confirm-btn" @click="toLogin" >登录</button>
			<view class="forget-section" @click="toRegist">忘记密码?</view>
		</view>
		
		<view class="register-section">
			还没有账号?
			<text @click="toRegist">马上注册</text>
		</view>
	</view>
</template>

<script src = "./login.js"></script>

<style lang="scss" src = "./login.scss"></style>